<template>
	<view style="width:100%;">
	    <view style="width:100%;height:200px;display:flex;align-items:center;">
	        <view style="width:60px;height:90px;margin:0 auto;">
	            <view style="width:60px;height:60px;">
	                <img src="../../static/center/sharingGoods.png" style="width:100%;height:100%;">
	            </view>
	            <view style="width:100%;height:30px;text-align:center;font-size:20px;line-height:40px;">
	                <span>￥</span><span id="jifen">{{money}}</span>
	            </view>
	        </view>
	    </view>
	    <view id="tixian" @click="tixian()" style="height:30px;width:200px;background:white;color:green;line-height:30px;text-align:center;margin:10px auto;border-radius:5px;">提现</view>
	    <view id="jifenHistory" @click="liushui()" style="height:30px;width:200px;background:white;color:green;line-height:30px;text-align:center;margin:10px auto;border-radius:5px;">收款记录</view>
		<!--二维码收款-->
	    <view @click="shoukuan()" style="width:200px;height:35px;border-radius:5px;line-height:35px;text-align:center;background:orange;color:white;margin:20px auto;font-size:13px;">
	        二维码收款
	    </view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				money:0
			}
		},
		onLoad() {
			var userid = uni.getStorageSync('usersId');
			if(userid==null || userid=="" || userid==undefined){
				
			}else{
				this.$http.get('/jifen.do', {
					p: 'gzhxcx',
					userid: uni.getStorageSync('usersId')
				}).then(res => {
					this.money=res.data.data;
				})
			}
		},
		methods: {
			tixian(){
				uni.navigateTo({
					url:'walletTixian'
				})
			},
			shoukuan(){
				uni.navigateTo({
					url:'walletShoukuan'
				})
			},
			liushui(){
				uni.navigateTo({
					url:'walletRecord'
				})
			}
		}
	}
</script>

<style>
</style>
